package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;

/**
 * @author: bigwangy@sina.com
 * @create: 2021-03-10
 * @description: 来自微信端的分包
 **/
@Entity(name = "t_wexin_sub")
public class WexinSub extends BaseEntity {

    @Column(name = "company_id", length = 32)
    private String companyId;

    /**
     * 分包id
     */
    @Column(name = "sub_id", length = 32)
    private String subId;

    @Column
    private String spec;            //规格
    @Column
    private String specUnits;        //单位

    /**
     * 打印数量
     */
    @Column(name = "print_num", length = 6)
    private String printNum;

    /**
     * 签名
     */
    @Column(name = "sign", length = 50)
    private String sign;

    /**
     * 联系电话
     */
    @Column(name = "phone", length = 13)
    private String phone;

    /**
     * 产地
     */
    @Column(name = "address", length = 50)
    private String address;

    /**
     * 开具日期
     */
    @Column(name = "open_date", length = 30)
    private String openDate;

    /**
     * 是否使用药品
     */
    private boolean usedDrug;
    /**
     * 是否使用添加
     */
    private boolean usedAdd;

    /**
     * 遵守规则
     */
    private boolean observeRule;

    /**
     * 遵守销售
     */
    private boolean observeSale;

    @Transient
    private String usedDrug16;
    @Transient
    private String usedAdd16;
    @Transient
    private String observeRule16;
    @Transient
    private String observeSale16;


    public String getSubId() {
        return subId;
    }

    public void setSubId(String subId) {
        this.subId = subId;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getSpecUnits() {
        return specUnits;
    }

    public void setSpecUnits(String specUnits) {
        this.specUnits = specUnits;
    }

    public String getPrintNum() {
        return printNum;
    }

    public void setPrintNum(String printNum) {
        this.printNum = printNum;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


    public String getOpenDate() {
        return openDate;
    }

    public void setOpenDate(String openDate) {
        this.openDate = openDate;
    }

    public boolean isUsedDrug() {
        return usedDrug;
    }

    public void setUsedDrug(boolean usedDrug) {
        this.usedDrug = usedDrug;
    }

    public boolean isUsedAdd() {
        return usedAdd;
    }

    public void setUsedAdd(boolean usedAdd) {
        this.usedAdd = usedAdd;
    }

    public boolean isObserveRule() {
        return observeRule;
    }

    public void setObserveRule(boolean observeRule) {
        this.observeRule = observeRule;
    }

    public boolean isObserveSale() {
        return observeSale;
    }

    public void setObserveSale(boolean observeSale) {
        this.observeSale = observeSale;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }


    public String getUsedDrug16() {
        return usedDrug16;
    }

    public void setUsedDrug16(String usedDrug16) {
        this.usedDrug16 = usedDrug16;
    }

    public String getUsedAdd16() {
        return usedAdd16;
    }

    public void setUsedAdd16(String usedAdd16) {
        this.usedAdd16 = usedAdd16;
    }

    public String getObserveRule16() {
        return observeRule16;
    }

    public void setObserveRule16(String observeRule16) {
        this.observeRule16 = observeRule16;
    }

    public String getObserveSale16() {
        return observeSale16;
    }

    public void setObserveSale16(String observeSale16) {
        this.observeSale16 = observeSale16;
    }
}
